package com.jymj.dao;

import com.jymj.entity.gantt.GanttLinkEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by ljj on 2017/6/14.
 */
@Mapper
public interface GanttLinkDao extends BaseDao<GanttLinkEntity> {

    List<GanttLinkEntity> getLinkList();

    List<GanttLinkEntity> getPreTasks(Map<String, Object> map);

    Map<String, Object> getTaskRef(int linkId);

    void deleteLink(Map<String, Object> map);

    void insertLinks(@Param("pjid") Integer pjid, @Param("list") List<GanttLinkEntity> list);

    void deleteLinkbySource(Map<String, Object> map);
}
